import request from '@/router/axios';
import {downloadExcel} from '@/router/axios';
import {formatCondition} from '@/util/util';
//单条查询
export const queryBizSixteenUserAnalysis = (params) => {
  params.head.transCode = 'queryBizSixteenUserAnalysis';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/queryBizSixteenUserAnalysis',
    method: 'post',
    data: params
  })
}
//多条列表查询，支持条件查询
export const queryBizSixteenUserAnalysisListPage = (params) => {
  params.head.transCode = 'queryBizSixteenUserAnalysisListPage';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/queryBizSixteenUserAnalysisListPage',
    method: 'post',
    data: params
  })
}
//新增单条记录
export const saveBizSixteenUserAnalysis = (params) => {
  params.head.transCode = 'saveBizSixteenUserAnalysis';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/saveBizSixteenUserAnalysis',
    method: 'post',
    data: params
  })
}
//新增多条记录
export const saveBizSixteenUserAnalysisList = (params) => {
  params.head.transCode = 'saveBizSixteenUserAnalysisList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/saveBizSixteenUserAnalysisList',
    method: 'post',
    data: params
  })
}
//新增或修改单条记录
export const saveOrUpdateBizSixteenUserAnalysis = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserAnalysis';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/saveOrUpdateBizSixteenUserAnalysis',
    method: 'post',
    data: params
  })
}


//新增或修改单条记录
export const saveOrUpdateBizSixteenUserAnalysisList = (params) => {
  params.head.transCode = 'saveOrUpdateBizSixteenUserAnalysisList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/saveOrUpdateBizSixteenUserAnalysisList',
    method: 'post',
    data: params
  })
}

//修改单条记录
export const updateBizSixteenUserAnalysis = (params) => {
  params.head.transCode = 'updateBizSixteenUserAnalysis';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/updateBizSixteenUserAnalysis',
    method: 'post',
    data: params
  })
}

//删除单条记录
export const deleteBizSixteenUserAnalysis = (params) => {
  params.head.transCode = 'deleteBizSixteenUserAnalysis';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/deleteBizSixteenUserAnalysis',
    method: 'post',
    data: params
  })
}

//删除多条记录
export const deleteBizSixteenUserAnalysisList = (params) => {
  params.head.transCode = 'deleteBizSixteenUserAnalysisList';
  return request({
    url: '/biz/sixteen/bizSixteenUserAnalysis/deleteBizSixteenUserAnalysisList',
    method: 'post',
    data: params
  })
}
//导出excel
export const exportBizSixteenUserAnalysisExcel = (params) => {
  downloadExcel({
    url: '/biz/sixteen/bizSixteenUserAnalysis/excelDownload/exportBizSixteenUserAnalysisExcel',
    method: 'get',
    data: 
    {
      tenantId: params.head.tenantId,
      orders:'',
      condition: formatCondition(params.body.sqlCondition)
    }
  })
}
